package com.hsjk.szwj.module.train.controller.app.vo.question;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author chenjiawei
 * @desc
 * @Date 2023/09/03 10:06
 **/
@Data
public class AppQuestionActionRecordReqVO {

    @Schema(description = "题目ID")
    @NotNull(message = "题目ID不能为空")
    private Long questionId;

    @Schema(description = "最近一次答题错误记录")
    private Boolean lastErrorAnswerRecord;

    @Schema(description = "是否收藏")
    private Boolean favorite;

    @Schema(description = "车型")
    @NotNull(message = "车型不能为空")
    private Integer carType;

    @Schema(description = "科目")
    @NotNull(message = "科目不能为空")
    private Integer subject;

    @Schema(description = "操作次数")
    @NotNull(message = "操作次数不能为空")
    private Integer actionCount;

    @Schema(description = "错误次数")
    @NotNull(message = "错误次数不能为空")
    private Integer errorCount;

    @Schema(description = "记录来源类型：1-模考 2-题集")
    @NotNull(message = "记录来源类型不能为空")
    private Integer sourceFromType;

    @Schema(description = "记录来源id：模考批次号或者题集id")
    @NotNull(message = "记录来源id不能为空")
    private Long sourceFromId;
}
